import { createRoot } from 'react-dom/client'
import { BrowserRouter,Route, Routes } from "react-router-dom"
import Mlogin from './mobile/mlogin'
import Login from './pc/login'
import MobileStars from './mobile/MobileStars'
import PcStars from './pc/pcStars'


const isMobile = /Android|iPhone|Harmony|OpenHarmony/i.test(navigator.userAgent);
createRoot(document.getElementById('root')).render(
  <BrowserRouter>
    <Routes>
      <Route path="/" element={isMobile ? <MobileStars /> : <PcStars />} />
      <Route path="/login" element={isMobile ? <Mlogin /> : <Login />} />
    </Routes>
  </BrowserRouter>
)
